<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/9
  Time: 14:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <title>订单列表</title>
    <%@ include file="/common/include-core.jsp" %>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 订单管理 <span class="c-gray en">&gt;</span> 订单列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>

<div class="text-c">
    <form action="/order/getOrderList.html" method="post" id="searchForm">

        <input type="hidden" id="count" value="${pageinfo.total }" />
        <input type="hidden" id="page" name="page" value="${pageinfo.pageNum }" />
        <input type="hidden" id="pageSize" name="pageSize" value="${pageinfo.pageSize }" />

        <input type="text" class="input-text" style="width:250px" placeholder="输入用户名" name="userName" value="${bean.userName}">
        <input type="text" class="input-text" style="width:250px" placeholder="输入用户电话" name="phone" value="${bean.phone}">
        <input type="text" class="input-text" style="width:250px" placeholder="输入订单ID" name="orderId" value="${bean.orderId}">
       <select class="select-box" style="width:250px" name="status">
            <option value="" ${bean.status==''?"selected":""}>无</option>
            <option value="1" ${bean.status==1?"selected":""}>未付款</option>
            <option value="2" ${bean.status==2?"selected":""}>已付款</option>
            <option value="12" ${bean.status==12?"selected":""}>待发货</option>
            <option value="13" ${bean.status==13?"selected":""}>已发货</option>
        </select>
        <button type="submit" class="btn btn-success radius" id="selectOrder"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>

    </form>
</div>
<div class="page-container">
    <%--<div class="cl pd-5 bg-1 bk-gray"> <span class="l"> <a class="btn btn-primary radius" href="javascript:;" onclick="layer_show('添加用户','/user/UserAdd.html','400','200')"><i class="Hui-iconfont">&#xe600;</i> 添加角色</a> </span> </div>--%>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
        <tr>
            <th scope="col" colspan="8">订单列表</th>
        </tr>
        <tr class="text-c">
            <th width="15">序号</th>
            <th width="30">用户名字</th>
            <th width="30">用户电话</th>
            <th width="100">订单ID</th>
            <th width="40">价格</th>
            <th width="15">订单状态</th>
            <th width="15">创建时间</th>
            <th width="15">操作</th>
        </tr>
        </thead>
        <tbody>
            <c:forEach items="${pageinfo.list}" var="item" varStatus="index">
                <tr class="text-c">
                    <td>${index.index+1}</td>
                    <td>${item.distributionName}</td>
                    <td>${item.distributionPhone}</td>
                    <td>${item.orderId}</td>
                    <td><fmt:formatNumber value="${item.orderPrice/100}" type="currency"/></td>
                    <td class="td-status">
                        <c:if test="${item.status==-2}"><span class="label label-defaunt radius">已经删除订单</span></c:if>
                        <c:if test="${item.status==-1}"><span class="label label-defaunt radius">已过期</span></c:if>
                        <c:if test="${item.status==0}"><span class="label label-success radius">已取消</span></c:if>
                        <c:if test="${item.status==1}"><span class="label label-success radius">未付款</span></c:if>
                        <c:if test="${item.status==2}"><span class="label label-success radius">已付款</span></c:if>
                        <c:if test="${item.status==3}"><span class="label label-success radius">未验证</span></c:if>
                        <c:if test="${item.status==4}"><span class="label label-success radius">已验证</span></c:if>
                        <c:if test="${item.status==5}"><span class="label label-success radius">交易完成</span></c:if>
                        <c:if test="${item.status==6}"><span class="label label-success radius">申请退款</span></c:if>
                        <c:if test="${item.status==7}"><span class="label label-success radius">取消退款</span></c:if>
                        <c:if test="${item.status==8}"><span class="label label-success radius">已退款</span></c:if>
                        <c:if test="${item.status==9}"><span class="label label-success radius">订单关闭</span></c:if>
                        <c:if test="${item.status==10}"><span class="label label-success radius">部分支付</span></c:if>
                        <c:if test="${item.status==11}"><span class="label label-success radius">支付失败订单关闭</span></c:if>
                        <c:if test="${item.status==12}"><span class="label label-success radius">待发货</span></c:if>
                        <c:if test="${item.status==13}"><span class="label label-success radius">已发货,待收货</span></c:if>
                        <c:if test="${item.status==14}"><span class="label label-success radius">已收货</span></c:if>
                        <c:if test="${item.status==15}"><span class="label label-success radius">已选号</span></c:if>
                        <c:if test="${item.status==16}"><span class="label label-success radius">选号失败</span></c:if>
                        <c:if test="${item.status==17}"><span class="label label-success radius">已撤单</span></c:if>
                    </td>
                    <td><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm" /></td>
                    <td class="f-14">
                        <a title="查看快递信息" href="/order/getExpressInfoList.html?orderId=${item.orderId}" style="text-decoration:none">
                            <i class="Hui-iconfont">&#xe681;</i></a>
                        <a title="查看支付方式" href="/order/getPaymentList.html?orderId=${item.orderId}" style="text-decoration:none">
                            <i class="Hui-iconfont">&#xe626;</i></a>
                        <a title="查看订单实体" href="/order/getOrderItemList.html?orderId=${item.orderId}" style="text-decoration:none">
                            <i class="Hui-iconfont">&#xe627;</i></a>
                    </td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
    <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
</div>
<%--<script type="text/javascript" src="/static/js/order/order.js"></script>--%>
</body>
</html>
<%@ include file="/common/include-footer.jsp" %>